revealer: Don't add a clip node for CROSSFADE transitions
authorTimm Bäder <mail@baedert.org>
Fri, 5 May 2017 16:41:30 +0000 (18:41 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:12 +0000 (21:27 -0400)
We don't need them there as we just change the opacity of the revealer.

gtk/gtkrevealer.c

index 96f8952839a2ded6e6372184178a6f8ef5c384ee..fbda87be39adc2c06e12494f3a4628bb24421092 100644 (file)
@@ -785,7 +785,8 @@ gtk_revealer_snapshot (GtkWidget   *widget,
     return;
 
   transition = effective_transition (revealer);
-  if (transition == GTK_REVEALER_TRANSITION_TYPE_NONE)
+  if (transition == GTK_REVEALER_TRANSITION_TYPE_NONE ||
+      transition == GTK_REVEALER_TRANSITION_TYPE_CROSSFADE)
     {
       gtk_widget_snapshot_child (widget, child, snapshot);
     }